<style>
.nav li a {
font-family: 'Roboto',sans-serif;
}
</style>
<header id="ha-header" class="ha-header-show">
    <div class="ha-header-perspective">
        <div class="ha-header-front">
            <nav class="navbar navbar-default" role="navigation">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse"
                                data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <a class="navbar-brand" href="<?= URL::base(); ?>"><img src="<?= URL::base(); ?>/storage/uploads/images/thumbnails/<?= Settings::get('en','site_logo');?>"
                                                                                alt=""></a>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                        <ul class="nav navbar-nav navbar-right">

                            <li><a href="<?= URL::base();?>/member/register/">Register</a></li>
                            <li><a href="<?= URL::base();?>/member">Add Business</a></li>



                            <?php if(!Auth::user()){ ?>
                            <li><a href="#" data-toggle="modal" data-target=".modal-login">Login</a></li>
                            <?php }else{ ?>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?= Auth::user()->name;?><span
                                            class="caret"></span></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <?php if(Auth::user()->role_id == 1){ ?>
                                        <li><a href="<?= URL::base();?>/admin">Administrator</a></li>
                                         <li class="divider"></li>
                                         <?php }?>
                                        <li><a href="<?= URL::base();?>/member">Dashboard</a></li>
                                        
                                        <li><a href="<?= URL::base();?>/member/profile">Change Password</a></li>
                                        <li class="divider"></li>
                                        <li><a href="<?= URL::base();?>/member/post/add/1">Add your Business</a></li>
                                        <li><a href="<?= URL::base();?>/member/profile">Profile</a></li>
                                        <li class="divider"></li>
                                        <li><a href="<?= URL::base();?>/logout">Logout</a></li>
                                    </ul>
                                </li>
                            <?php }?>
                            <li><a href="<?= URL::base();?>/contact">Contact</a></li>
                        </ul>

                        <div class="contctph">
                            <p><?= Settings::get('en','office_contact_1');?></p>
                        </div>
                    </div>
                    <!-- /.navbar-collapse -->
                </div>
                <!-- /.container-fluid -->
            </nav>
        </div>
    </div>
</header>


<!-- LOGIN MODAL -->

<style>
    .modal-login {
        /* new custom width */
        width: 750px;
		margin-left: auto;
   		 margin-right: auto;
    }
</style>

<div class="modal modal-login" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content ">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span class="sr-only">Close</span>x</button>
                <h3 class="modal-title" id="myModalLabel">Member Login</h3>
            </div>
            <div class="modal-body">

                <div class="row">
                    <div class="col-lg-7 col-md-7 col-xs-7">
                    <form role="form" name="frmLogin" id="frmLogin"  method="post" action="<?= Url::base();?>/login">
                        <div class="form-group">
                            <label>Email address <span class="red">*</span> </label>
                            <input type="text" class="field" id="username" name="username" placeholder="Enter email">
                        </div>
                        <div class="form-group">
                            <label>Password <span class="red">*</span></label>
                            <input type="password" class="field" id="password" name="password" placeholder="Password">
                        </div>

                        <div class="form-group">
                            <button type="submit" id="btnLogin" name="btnLogin" class="btn btn-danger">Submit</button>
                        </div>

                        <div class="form-group">
                            <label class="thin"><a href="#"> Forgot your Password? </a></label>
                        </div>
                    </form>

                    </div>

                    <div class="col-lg-5 col-md-5 col-xs-5">
                        <p><strong>Login with Social media?</strong></p>
                        <p>
                            <img src="<?= Url::base();?>/public/logo-facebook.png" alt="Facebook Login">
                        </p>
                    </div>
                </div>


            </div>

        </div>
    </div>
</div>